config_setting(
    name = "amd64-linux",
    constraint_values = [
        "@platforms//cpu:x86_64",
        "@platforms//os:linux",
    ],
)

config_setting(
    name = "arm64-linux",
    constraint_values = [
        "@platforms//cpu:aarch64",
        "@platforms//os:linux",
    ],
)

alias(
    name = "config",
    actual = select(
        {
            ":amd64-linux": "amd64-linux.h",
            ":arm64-linux": "arm64-linux.h",
        },
        no_match_error = "No OpenSSH portable `config.h` available for target platform",
    ),
    visibility = ["//:__pkg__"],
)
